#include "detectorobject.h"

#include <QFile>
#include <QTextStream>

DetectorObject::DetectorObject(QObject *parent) :
    imgBuf(0),
    imgWidth(0),
    imgHeight(0),
    QObject(parent)
{
}

DetectorObject::~DetectorObject()
{
    freeDetector();
}

ushort *DetectorObject::getImage(ushort *&imgPtr, int &width, int &height)
{
    imgPtr = imgBuf;
    width = imgWidth;
    height = imgHeight;
    imgBuf = 0;
    return imgPtr;
}
